package com.woniu.entity;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;
import java.util.Date;

/**
 * 表名：flower_collection
*/
@Table(name = "flower_collection")
@Data
@AllArgsConstructor
@NoArgsConstructor
public class FlowerCollection implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * 收藏编号
     */
    @Id
    @Column(name = "collect_id")
    private Integer collectId;

    /**
     * 用户id
     */
    @Column(name = "account_id")
    private Integer accountId;

    /**
     * 鲜花id
     */
    @Column(name = "flower_id")
    private Integer flowerId;

    /**
     * 创建收藏时间
     */
    @Column(name = "create_time")
    private Date createTime;

    /**
     * 获取收藏编号
     *
     * @return collectId - 收藏编号
     */
    public Integer getCollectId() {
        return collectId;
    }

    /**
     * 设置收藏编号
     *
     * @param collectId 收藏编号
     */
    public void setCollectId(Integer collectId) {
        this.collectId = collectId;
    }

    /**
     * 获取用户id
     *
     * @return accountId - 用户id
     */
    public Integer getAccountId() {
        return accountId;
    }

    /**
     * 设置用户id
     *
     * @param accountId 用户id
     */
    public void setAccountId(Integer accountId) {
        this.accountId = accountId;
    }

    /**
     * 获取鲜花id
     *
     * @return flowerId - 鲜花id
     */
    public Integer getFlowerId() {
        return flowerId;
    }

    /**
     * 设置鲜花id
     *
     * @param flowerId 鲜花id
     */
    public void setFlowerId(Integer flowerId) {
        this.flowerId = flowerId;
    }

    /**
     * 获取创建收藏时间
     *
     * @return createTime - 创建收藏时间
     */
    public Date getCreateTime() {
        return createTime;
    }

    /**
     * 设置创建收藏时间
     *
     * @param createTime 创建收藏时间
     */
    public void setCreateTime(Date createTime) {
        this.createTime = createTime;
    }
}